<?

require_once ("application.list.inc");

global $_GLOBAL_DBH;
global $_OBJECT_IFACE_PANEL;
global $_IFACE_CONTROL_OBJECT;
global $_SET_TABBING;

$_SET_TABBING = true;

$fs_local_document = $_REQUEST["PHP_SCRIPT"];

$lc_eve_man_fee_schedules = array (
	fee_description=>array (label=>"Fee Description",order=>"DEFAULT",wrapper=>"vmc_icon_method"),
	first=>array (label=>"First Name",order=>"DEFAULT"),
	last=>array (label=>"Last Name",order=>"DEFAULT"),
	fee=>array (label=>"Fee",order=>"DEFAULT"),
	cdate=>array (label=>"Create Date",order=>"DEFAULT",wrapper=>"vmc_icon_date"),
);

$link_options_path = array (
	array (
		fs_tab=>"eve_man_fee_schedules",
		fs_tab_option=>"lc_eve_man_fee_schedules",
		object_id=>"registration_id",
		object_value=>$_REQUEST["registration_id"],
	)
);

$link_options = _app_create_tabbing (null, $link_options_path);

$object_ctl_path = array (
	array (
		fs_action=>"view",
		fs_tab=>"eve_man_fee_schedules",
		fs_tab_option=>"fs_eve_man_fee_schedules",
		object_id=>"registration_id",
		object_value=>$_REQUEST["registration_id"],
	)
);

$object_ctl = _app_create_tabbing ( "{$fs_local_document}?",
		$object_ctl_path) . "&";

$list_options_path = array (
	array (
		fs_tab=>"eve_man_fee_schedules",
		fs_action=>"addnew",
		fs_tab_option=>"fs_eve_man_fee_schedules",
		object_id=>"registration_id",
		object_value=>$_REQUEST["registration_id"], )
);

$list_options = array (
	array (
		label=>"Create A Fee Schedule",
		link=>_app_create_tabbing ("{$fs_local_document}?", $list_options_path)
	),
);

$_OBJECT_IFACE_LIST = _app_create_list_object (array (
		db_conn=>$_GLOBAL_DBH,
		indexes=>$lc_eve_man_fee_schedules,
		list_count=>"SELECT COUNT(*) FROM eve_man_registrations,eve_man_fee_schedules WHERE eve_man_registrations.id={$_REQUEST["registration_id"]} AND fee_schedule_id=eve_man_fee_schedules.id",
		list_select=>"SELECT eve_man_fee_schedules.*,eve_man_attendees.last,eve_man_attendees.first FROM eve_man_registrations,eve_man_fee_schedules,eve_man_attendees WHERE eve_man_registrations.id={$_REQUEST["registration_id"]} AND fee_schedule_id=eve_man_fee_schedules.id AND attendee_id=eve_man_attendees.id",
		list_id=>"lc_eve_man_fee_schedules",
		list_options=>$list_options,
		primary_key=>"id",
		primary_relation=>"fee_schedule_id",
		link_options=>$link_options,
		object_ctl=>$object_ctl
));

array_push ($_IFACE_CONTROL_OBJECT, $_OBJECT_IFACE_LIST);

?>
